SQL by Reed Mark
Author: Reed, Mark , Date: February 21, 2022
, Views: 175
1
Cardiology
Dr. Simon
100
2
Pathology
Dr. Greg
150
Now that we are creating two tables, the third condition of 2NF requires that we create a relationship between the two tables using a foreign key. Here, we know that one department can have many patients. This means that we should add a foreign key column to the Patient table that refers to the ID column of the Department table. The Department table will not change from what is shown above, and the updated Patient table will look like this:
Patient Table
PatientID
PatientName
PatientAge
PatientGender
DepID
Download
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.